Flash Article

Integrating Video into Macromedia Flash


Table of Contents

  1. Introduction
  2. Embedding Video Directly in a Flash Document
  3. Importing Video into a Flash document
  4. Using Flash Media Components
  5. Adding Streaming Media to a Media Component
  6. Using the Component Inspector
  7. Streaming Media File Formats
  8. Streaming Video

Embedding Video Directly in a Flash Document

Flash MX 2004 accepts any video file format supported by Apple QuickTime or Microsoft Direct Show. Supported formats include MOV, MPEG and AVI files. If you embed video directly in a Flash document, the file size of the SWF will increase whether or not the end user views the video. Flash does an amazing job of compressing video files, but file size can still increase significantly when embedding video.

You embed video in a Flash document by:

  • Importing a video file to the library.
  • Placing an instance of it in a MovieClip or on the main Timeline.

When you drag a video instance from the library to a MovieClip, a dialog box prompts you to extend the Timeline to the length of the video.

As a best practice, add video to a MovieClip on the main document’s Timeline, not to the main Timeline itself. Because MovieClips are completely independent of the main Timeline, you don’t have to extend the main document’s Timeline to accommodate the length of the video.

To import video into a Flash document:

  1. Select File > Import… > Import to Library as you would to import any file.
  2. Select the video file to import using the Import dialog box.
  3. Use the Video Import wizard to:
    • Embed the video.
    • Import the entire video or edit the video first and then import it.
    • Define a Compression profile so that the video is appropriate for your users’ Internet bandwidth.
One way to embed video in a Flash Document

Figure 1. One way to embed video in a Flash Document